package shapes.shapes2D 
{
	import flash.display.Graphics;
	import flash.geom.Point;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	dynamic public class Dot extends Point
	{
		
		private var _x:Number;
		private var _y:Number;
		private var _z:Number;
		private var _id:int;
		
		
		public function Dot( x:Number = 0, y:Number = 0, id:int = -1 ) 
		{
			this.x = x;
			this.y = y;
			this.id = id;
		}
		
		public function cloneDot():Dot
		{
			var d:Dot = new Dot( x, y, id );
			d.z = z;
			return d;
		}
		
		
		public function draw( graphics:Graphics ):void
		{
			
			graphics.drawCircle( x, y, 2 );
			
		}
		
		public function get id():int { return _id; }
		
		public function set id(value:int):void 
		{
			_id = value;
		}
		
		public function get z():Number { return _z; }
		
		public function set z(value:Number):void 
		{
			_z = value;
		}
		
	}

}